package xyz.zdsoft.course_manage_module.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.zdsoft.common.utils.ResultBody;
import xyz.zdsoft.course_manage_module.bo.CourseInfoBo;
import xyz.zdsoft.course_manage_module.service.StudentCourseService;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;


/**
 * @author 王林
 * @version 1.0
 * @date 2021-07-22 周四
 * @time 11:04
 * @description
 */

@Api(tags = "学生课程管理")
@RequestMapping("api/student/course")
@RestController
@Validated
public class StudentCourseController {

    @Resource
    private StudentCourseService studentCourseService;

    @ApiOperation(value = "根据条件查询学生个人的课程安排")
    @GetMapping("/getAllCourse")
    @ApiOperationSupport(ignoreParameters = {"studentId,teacherId"})
    public ResultBody selectCourse(CourseInfoBo courseInfoBo, HttpServletRequest request) {

        return studentCourseService.queryCourseList(courseInfoBo,request);
    }

//    @GetMapping(value = "/getLessonName")
//    @ApiOperation(value = "下拉框查询学生个人的课程课程名")
//    @ApiOperationSupport(ignoreParameters = {"updateTime", "updateBy", "createTime", "createBy", "delFlag0", "remark"})
//    public Result getLessonName(String token) {
//
//        Result result = null;
//        return result;
//    }




}
